FROM centos:centos7

MAINTAINER Xueqi <thucxq@gmail.com>

ENV REFRESHED_AT 2020-1-31

RUN yum -y update \
    && yum -y install curl bzip2 \
    && curl -sSL https://repo.continuum.io/miniconda/Miniconda3-latest-Linux-x86_64.sh -o /tmp/miniconda.sh \
    && bash /tmp/miniconda.sh -bfp /usr/local/ \
    && rm -rf /tmp/miniconda.sh \
    && conda install -y python=3 \
    && conda update conda \
    && conda clean --all --yes \
    && rpm -e --nodeps curl bzip2 \
    && yum clean all
RUN yum -y install gettext gcc postgresql-devel* libjpeg libjpeg-devel zlib zlib-devel libevent libevent-devel \
    && yum clean all
RUN yum -y install memcached epel-release
# RUN rpm -Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm
RUN yum -y install nginx
RUN ln -s /usr/local/lib/libssl.so.1.1 /usr/lib64/libssl.so.1.1 \
	&& ln -s /usr/local/lib/libcrypto.so.1.1 /usr/lib64/libcrypto.so.1.1

VOLUME /project
WORKDIR /project
ADD . /project/
CMD ["/usr/sbin/init"]


